<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../commons/taglibs.jsp" %>
<style>
	.parentMenu{
		background: #DBF2E2;
	}
</style>
<div class="layui-side layui-bg-black kit-side">
	 <div class="layui-side-scroll">
	     <div class="kit-side-fold"><i class="fa fa-navicon" aria-hidden="true"></i></div>
	        <ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
				<c:forEach items="${sysMenuList }" var="sysMenu">
					<c:if test="${ sysMenu.parentid eq '0'}">
		            	<li class="layui-nav-item">
							 <a class="parentMenu" href="javascript:;" >
							 	<!-- <i class="fa fa-plug" aria-hidden="true"></i> -->
							 	<!--设置显示图标-->
								<i class="layui-icon ${sysMenu.icon == null? 'layui-icon-set' : sysMenu.icon	}"></i>
							 	<span> ${sysMenu.menuname }</span>
							 </a>
							<dl class="layui-nav-child">
								<c:forEach items="${sysMenuList }" var="sysMenu1">
										<c:if test="${sysMenu.id eq  sysMenu1.parentid}">
											 <dd>
						                        <a href="javascript:;" data-url="${sysMenu1.menuurl }" data-icon="" data-title="${sysMenu1.menuname }" kit-target data-id='${sysMenu1.id }'>
							                        <!-- <i class="fa fa-user" aria-hidden="true"></i> -->
							                        <!--设置显示图标-->
													<i class="layui-icon ${sysMenu1.icon == null || sysMenu1.icon == '' ? 'layui-icon-star-fill' : sysMenu1.icon}"></i>
							                        <span> ${sysMenu1.menuname }</span>
						                        </a>
						                    </dd>
										</c:if>
								</c:forEach>
							</dl>
						</li>
					</c:if>
				</c:forEach>
	        </ul> 
	    </div>
</div>